<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="root">
			<h1>{{username}}</h1>
		</div>
		
		<script type="text/javascript">
			const vm = new Vue({
				el: "#root",
				data: {
					username: 'zhangsan'
				},
				methods: {
					hello() {
						console.log('Hello')
					}
				},
				beforeCreate() {
					console.log('beforeCreate',this)
					debugger
				}
			})
		</script>
	</body>
</html>